package com.liyunc.demo.comp.common.rest.response;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author liyuncong
 * @version 1.0
 * @file AbstractResponse
 * @brief AbstractResponse
 * @details AbstractResponse
 * @date 2022-04-28
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-04-28                      liyuncong          Created
 */
@Data
@NoArgsConstructor
public abstract class AbstractResponse {
    protected int code;
    protected String message;
    protected LocalDateTime timestamp = LocalDateTime.now();

    public AbstractResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
